package com.bestcem.xm.member.grpc.service.param.project;

import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * @author dc.wang <dc.wang@idiaoyan.com>
 * @version V1.0
 * @description 校验项目重名参数
 * @date 2021/7/19
 */
@Getter
@Setter
@ToString
public class ValidateNameParam {
    // 企业标识
    @NotBlank
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "企业标识格式错误")
    private String orgId;

    // 项目名称
    @NotBlank
    @Size(max = 20)
    private String projectName;
}
